package tungsten.pb;

import java.lang.reflect.Method;

/**
 * Created by Lv on 2016/6/24.
 */
public class PBMessageEncoder {
    //哪个类
    private Class<?> clazz;
    //build 方法
    private Method buildMethod;
    //设置方法
    private Method setMethod;
    //模块ID
    private int moduleId;

    public PBMessageEncoder(Class<?> clazz, Method buildMethod, Method setMethod,int moduleId)
    {
        this.clazz = clazz;
        this.buildMethod = buildMethod;
        this.setMethod = setMethod;
        this.moduleId = moduleId;
    }

    public Class<?> getClazz() {
        return clazz;
    }

    public Method getBuildMethod() {
        return buildMethod;
    }

    public Method getSetMethod() {
        return setMethod;
    }

    public int getModuleId() {
        return moduleId;
    }
}
